package com.gaswell.utils;

import org.apache.poi.util.StringUtil;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName RedisEnumeration
 * @Author xiaow
 * @DATE 2024/6/6 11:12
 **/

public class RedisEnumeration {



    public final static String QBA01INSPECTION = "qba01inspection";
    public final static String QBA01COUNT = "qba01count";
    public final static String MUTEXLOCK = "ntxlock";


    //  日数据巡检时使用的缓存key
    public static String getQba01inspection(String start, String end, String type, String jh, int sort,
                                            int current, int size, Integer sfsj) {
        return String.format("%s_%s_%s_%s_%s_%s_%s_%s_%s", QBA01INSPECTION, start == null ? "" : start, end == null ? "" : end, type, jh == null ? "" : jh, sort, current, size, sfsj);

    }

    public static String getQba01Count(String ym){
        return QBA01COUNT+ym;
    }
    public static String getQba01CountLock(String ym){
        return MUTEXLOCK+ym;
    }

    public static void main(String[] args) {
        System.out.println(getQba01inspection("123", "123", "123", "123", 1, 2, 3, 1));
    }


}
